<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>安全保障工作平台</title>
<link href="../css/style_top.css" rel="stylesheet" type="text/css" />

<link href="../css/footer.css" rel="stylesheet" type="text/css" />
<link href="../css/recommended.css" rel="stylesheet" type="text/css" />
</head>
<script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
<script src="../js/common.js"></script>
<script>
		window.onload=function(){
		$("#tb tbody").html(tableLoading(9));//加载进度条
		var html='';
	 	$.ajax({
	 		type:"get",
	 		url:"http://192.168.2.25:7080/GZCLZ/platform/selectPriceList.do",
	 		dataType:"json",
	 		success : function(data) {
	 		 var resData = data["resultdata"], arr = resData["list"], page = resData["page"];
        	$.each(arr,function(index,value){
        		var category='';
        		if(value.baseProduct.cid == 0){
		            category = '蔬菜';
		        }else if(value.baseProduct.cid == 1){
		            category = '肉鸡';
		        }else if(value.baseProduct.cid ==2){
		            category = '奶类';
		        }else if(value.baseProduct.cid == 3){
		        	category = '塘鱼';
		        }else if(value.baseProduct.cid == 4){
		        	category = '生猪';
		        }
        	html+='<tr class="tab_le_tr"  align="center" style="font-size:12px;" >'+
        	'<td>'+value.market.marketname+'</td>'+
        	'<td>'+convertTodate(value.pricetime)+'</td>'+
        	'<td>'+value.baseProduct.productName+'</td>'+
        	'<td>'+value.averagePrice+'</td>'+
        	'<td>'+category+'</td>'+
        	'</tr>'
			
        })
        $("#tb tbody").empty();//清除loading
        $("#tb tbody").append(html);
      },
      error:function(XMLHttpRequest, textStatus, errorThrown){
      
      }
	 });
	 }
	
</script>
<body>
   <!--头部-->
    <div class="top">
              <div class="buttom">
                     <div class="buttom_condent">
                         
                     </div>
              </div>
              <div class="platform_pic">
                       <img src="../pic/platform_pic_bg.png" />
              </div>
              <div class="nav_li" >
                      <ul class="nav_li_ul" id="nav">
                            <li>
                                <span><img src="../pic/nav_li_span_bg.png" /></span>
                                <a  href="home_condent.html">首页</a>
                            </li>
                            <li>
                                <span><img src="../pic/nav_li_span_bg.png" /></span>
                                <a href="supervision.html">市场监督信息</a>
                            </li>
                            <li>
                                <span><img src="../pic/nav_li_span_bg.png" /></span>
                                <a style=" color:#fff;" href="price_tate.html">市场价格信息</a>
                            </li>
                            <li>
                                <span><img src="../pic/nav_li_span_bg.png" /></span>
                                <a href="zhiliang_jiance.html">质量检测信息</a>
                            </li>
                            <li>
                                <span><img src="../pic/nav_li_span_bg.png" /></span>
                                <a href="suoyuan_infor.html">溯源信息</a>
                            </li>
                            <li>
                                <span><img src="../pic/nav_li_span_bg.png" /></span>
                                <a href="xiaofei_yujing.html">消费预警信息</a>
                            </li>
                            <li>
                                <span><img src="../pic/nav_li_span_bg.png" /></span>
                                <a href="Recommended.html">名品推荐</a>
                            </li>
                            <li>
                                <span><img src="../pic/nav_li_span_bg.png" /></span>
                                <a href="Healthy_eating.html">健康食用</a>
                                <span><img src="../pic/nav_li_span_bg.png" /></span>
                            </li>
                      </ul>
              </div>
        </div>

   <!--中部-->
       <div class="condent">
             <div class="left_nav">
                    <div class="left_nav_title"><span>市场价格信息</span></div>
                    <ul class="left_nav_ul"  id="left_nav_ul">
                           <li id="pifa"><a href="#"><span style=" margin-left:20px; color:#133c15;">批发零售市场</span></a></li>
                           <!-- <li id="lingshou"><a href="#"><span style=" margin-left:20px; ">零售市场</span></a></li> -->

                    </ul>
             </div>
             <!--内容-->
             <div class="right_condent" id="right_condent_table">
                     <p style=" border-bottom:1px solid #cacaca; margin-top:10px; font-size:12px;">您当前位置：<a href="home_condent.html" class="hov_er">首页</a>>><a class="hov_er" href="price_tate.html">市场价格信息</a></p>
                     <div class="form_condent">
                           <!--查询条件-->
                           <!-- <span style=" font-size:12px;">地区：</span>
                           <select>
                                  <option>全部</option>
                                  <option>越秀区</option>
                                  <option>荔湾区</option>
                                  <option>天河区</option>
                                  <option>海珠区</option>
                                  <option>白云区</option>
                                  <option>萝岗区</option>
                                  <option>南沙区</option>
                                  <option>黄埔区</option>
                                  <option>花都区</option>
                                  <option>番禺区</option>
                                  <option>增城市</option>
                                  <option>从化市</option>
                           </select>&nbsp;&nbsp;
                           <span style=" font-size:12px;">市场名称：</span>
                           <select>
                                  <option>广州市江村农贸综合批发市场</option>
                                  <option>江村家禽批发市场</option>
                                  <option>广州花卉研究中心</option>
                                  <option>广州黄沙水产交易市场</option>
                                  <option>白云山农产品综合批发市场</option>
                                  <option>广州江南果菜批发市场经营管理有限公司</option>
                                  <option>嘉禾畜禽交易服务中心</option>
                                  <option>白云区粮油综合市场</option>
                                  <option>天平架水果批发市场</option>
                                  <option>宝华生鲜街市</option>
                                  <option>东川新街市</option>
                                  <option>海珠肉菜市场</option>
                                  <option>光扬市场</option>
                                  <option>广州市荔朗农副产品综合批发市场</option>
                           </select>&nbsp;&nbsp;

                           <span style=" font-size:12px;">产品：</span><input style=" width:50px;" type="text" />
                           <a href="#"><input style=" background:#a7cc7c;" type="button" value="查询" /></a> -->
                           <div style=" margin-top:10px;">
                           <!--批发市场-->
                           <div id="pi_fa">
                            <table id="tb" width="100%" border="0" cellspacing="0" >
                            	<thead>
                                  <tr bgcolor="#578522" align="center" style="color:#fff;">

                                      <td>市场名称</td>
                                      <td>时间</td>
                                      <td>产品</td>
                                      <td>价格/元</td>
                                      <td>种类</td>
                                  </tr>
                                  </thead>
                                  <!--
                                  	作者：294235493@qq.com
                                  	时间：2016-10-11
                                  	描述：表格内容插入
                                  -->
                                  	<tbody>
                                  	 <td>市场名称</td>
                                     
									</tbody>
                           </table>
                           </div>
                          
                           <div style="background:#578522; width:100%; height:30px;">
                                 <table width="50%" border="0" cellspacing="0" align="right" style=" margin-top:2px;">
                                  <tr bgcolor="#578522" align="center" style="color:#fff;">
                                      <td><a href="#">上一页</a></td>
                                      <td><a href="#" style="color:rgb(152, 152, 152) !important;">下一页</a></td>
                                      <td><a href="#">尾页</a></td>
                                      <td><input type="text" /></td>
                                      <td><a href="#"><input style=" background:#a7cc7c;"  type="button" value="GO" /></a></td>
                                  </tr>
                                  </table>
                           </div>
                           <br>
                           <a href="http://www.abuya.com.cn/abuya/http/guanzhou_agr/mutualHcRetail.jsp?sadeforms=1&type_id=192" style="color:#578522;font-size:15px;" target="_blank">查阅更多商品价格信息
                     </div>
                     </div>

             </div>
             <!-- <div class="right_condent" id="right_condent_info" style=" display:none;" >
                     <p style=" border-bottom:1px solid #cacaca; margin-top:10px; font-size:12px;">您当前位置：<a href="home_condent.html" class="hov_er">首页</a>>><a class="hov_er" href="price_tate.html">市场价格信息</a></p>
                     <div class="form_condent">
                           <p style=" font-weight:bold; text-align:center;">南瓜农家农产品</p>
                           <p style=" text-align:right; font-size:12px; color:#8e8b8b;">发布时间：2016-07-15</p>
                           <div class="langua_bg">
                                   <img src="../pic/langua_bg.png" />
                           </div>
                           <div style=" margin-top:10px;">
                                 <ul class="form_condent_ul">
                                <li><span>生产商许可证编号：</span></li>
                                <li><span>产品标准号：</span></li>
                                <li><span>厂名：</span></li>
                                <li><span>厂址：</span></li>
                                <li><span>厂家联系方式：15023459124</span></li>
                                <li><span>配料表：南瓜</span></li>
                                <li><span>储存方式：常温</span></li>
                                <li><span>保质期：10个月</span></li>
                                <li><span>食品添加剂：无</span></li>
                                <li><span>净含量：500g</span></li>
                                <li><span>包装方式：散装</span></li>
                                <li><span>品种：南瓜</span></li>
                                <li><span>热卖时间：2016/2/2-2016/5/2</span></li>
                                <li><span>产地：中国大陆</span></li>
                           </ul>
                           <div style=" width:100%;"><p style=" float:right; height:20px; line-height:20px; background:#a7cc7c; "><a id="ba_ck" href="#" style=" font-size:16px;">返回</a></p></div>
                     </div>
                     </div>

             </div> -->
       </div>

    <!--底部-->
    <div class="footer">
                       <p class="footer_first">
                           <a href="#">关于我们</a> &nbsp;|
                           <a href="#">网站地图</a> &nbsp;|
                           <a href="#">联系我们</a> &nbsp;|
                           <a href="#">网站申明</a> &nbsp;|
                           <a href="#">隐秘安全</a> &nbsp;|
                           <a href="#">网站使用帮助</a> &nbsp;|
                       </p>
                       <p>关于我们 | 网站地图 | 联系我们 | 网站申明 | 隐私安全 | 网站使用帮助 主办单位：广州市农业局 运营维护及技术支持</p>
                       <p>建议使用1024*768分辨率 IE6.0以上版本浏览器</p>
                       <p>广州市农业信息中心版权所有，未经授权禁止复制或建立镜像</p>
               </div>

</body>
</html>
<script type="text/javascript" src="../js/style_top.js"></script>
<script>

     $(".tab_le_tr").click(function(){
		 //alert(1);
		//  $("#right_condent_info").css("display","block");
		//  $("#right_condent_table").css("display","none");
		 })
	 $("#ba_ck").click(function(){
		//  $("#right_condent_info").css("display","none");
		//  $("#right_condent_table").css("display","block");
		 })
	 $("#pifa").click(function(){
		 $("#pi_fa").fadeIn();
		 $("#ling_shou").fadeOut();
		//  $("#right_condent_table").show();
		//  $("#right_condent_info").css("display","none");
		 })
	 $("#lingshou").click(function(){
		 $("#pi_fa").fadeOut();
		 $("#ling_shou").fadeIn();
		//  $("#right_condent_table").show();
		//  $("#right_condent_info").css("display","none");
		 })
</script>
